package com.hlw.controller;

import com.hlw.entity.User;
import com.sun.deploy.net.HttpResponse;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author ：helongwei
 * @date ：Created in 2024/12/14 11:10
 * @description：
 * @modified By：
 * @version:
 */
@Controller
@RequestMapping("/hello")
public class HelloController {

    @RequestMapping("/hello")
    public String hello(){
        System.out.println("hello");
        return "hello";
    }

    @RequestMapping("/dancan")
    public String dancan(int id,String name){
        System.out.println("id:"+id+" name:"+name);
        return "hello";
    }
    @RequestMapping("/duocan")
    public String duocan(User user){
        //响应编码


        System.out.println(user);
        return "hello";
    }
}